﻿using MagicOnion;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace RPC服务端.Common
{
    public interface IMyService : IService<IMyService>
    {
        /// <summary>
        /// 加
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        Task<UnaryResult<int>> JiaAsync(int x, int y);
        /// <summary>
        /// 减
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        Task<UnaryResult<int>> JianAsync(int x, int y);
        /// <summary>
        /// 乘
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        Task<UnaryResult<int>> ChenAsync(int x, int y);
        /// <summary>
        /// 除
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        Task<UnaryResult<int>> ChuAsync(int x, int y);
    }
}
